<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		
		<view class="btn-group">
			<button type="primary" @click="goToDemo">前往网络请求测试页面</button>
		</view>
	</view>
</template>

<script>
	import request from '@/utils/request';
	
	export default {
		data() {
			return {
				title: 'Hello',
				result: ''
			}
		},
		onLoad() {

		},
		methods: {
			bindClick() {
				uni.showToast({
					title: '点击了徽章',
					icon: 'none'
				});
			},
			goToDemo() {
				uni.navigateTo({
					url: '/pages/demo/demo'
				});
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	
	.btn-group {
		margin-top: 40rpx;
		width: 90%;
	}
	
	.btn-group button {
		margin-bottom: 20rpx;
	}
	
	.result-area {
		margin-top: 30rpx;
		width: 90%;
		padding: 20rpx;
		background-color: #f8f8f8;
		border-radius: 10rpx;
	}
	
	.result-title {
		font-size: 30rpx;
		font-weight: bold;
		margin-bottom: 10rpx;
		display: block;
	}
	
	.result-content {
		font-size: 28rpx;
		word-break: break-all;
		white-space: pre-wrap;
	}
</style>
